# Replication files for *Weaponizing Post-Election Court Challenges: Assessing Losers’ Motivations*


## Description of data files

### Imported Data files
These files are imported and not generated by analysis
- `main_analysis.Rdata` 
- `kenya_law.rds`
- `candidate_info.csv`

### Written data files
These files are written during the process of running the code:

bargaining_chip.csv

bargaining_chip_findings.csv 

multiple_petitioner_cases.csv 

petition_strategies.csv 

case_manual_coding.csv 

rerun_check.csv

## Code decscription

1. First run `weaponizing_main_analysis.R`: This file is divided into Data Preparation, Figures, and Tables sections. In the Data Preparation section, "Manual check:" denotes a step in the analysis where data was manually labelled by the coder.
2. Second run `const_analysis.R`: This file outputs Table 1 in the paper.

These two files output all of the tables and figure in the paper, as well as some additional output.

